package com.dd.cloud.user.req.admin;

import com.dd.cloud.common.annotate.validation.Desc;
import com.dd.cloud.common.annotate.validation.Name;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 * 联系我们功能表
 * </p>
 *
 * @author czg
 * @since 2022-07-12
 */
@Data
public class UpdateContactUsReq implements Serializable {

    private static final long serialVersionUID=1L;

    @NotNull(message = "id不能为空")
    private Integer id;

    /**
     * 标题
     */
    @NotBlank(message = "名称不能为空")
    @Name(begin = "名称")
    private String title;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空")
    @Size(max = 500, message = "内容长度最大为500字符")
    private String content;

    /**
     * 备注
     */
    @Desc(required = false)
    private String remarks;

}
